package com.month.security.dto.common;

import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 公共分页查询参数实体类
 */
@Data
@Schema(name = "PageQueryParam", description = "分页查询参数实体类")
public class PageQueryParam implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 当前页码
     */
    @Schema(description = "当前页码", example = "1", defaultValue = "1")
    private Integer pageNum = 1;
    /**
     * 每页记录数
     */
    @Schema(description = "每页记录数", example = "10", defaultValue = "10")
    private Integer pageSize = 10;

    /**
     * 排序列
     */

    @Schema(description = "排序列", example = "createAt",allowableValues = {"createAt", "updatedAt"})
    private String orderByColumn;

    /**
     * 排序方向
     */
    @Schema(description = "排序方向", example = "desc", allowableValues = {"asc", "desc"})
    private String orderDirection;

    /**
     * 搜索关键字
     */
    @Schema(description = "搜索关键字")
    private String keyword;

}
